import request from '../utils/request2'

export function getExa(params){
  return request({
    url:'/examples',
    method:'get',
    params
  })
}
export function deleteExa(id){
  return request({
    url:'/examples/' + id,
    method:'delete'
  })
}

export function changeExa(data){
  return request({
    url:'/examples/' + data.id,
    method:'put',
    data
  })
}

export function addExa(data){
  return request({
    url:'/examples',
    method:'post',
    data
  })
}